package com.roadjava.GDOUGym.mapper;

import com.roadjava.GDOUGym.bean.dto.EquipmentDTO;
import com.roadjava.GDOUGym.bean.dto.EquipmentRentDTO;
import com.roadjava.GDOUGym.bean.dto.GameDTO;
import com.roadjava.GDOUGym.bean.entity.EquipmentDO;
import com.roadjava.GDOUGym.bean.entity.EquipmentRentDO;

import java.util.List;

public interface EquipmentRentMapper {
    List<EquipmentRentDO> find(EquipmentRentDTO dto);
    List<EquipmentDO> findCanRent(EquipmentRentDTO dto);
    long selectCount(EquipmentRentDTO dto);
    long selectCanRentCount(EquipmentRentDTO dto);
    long findCanRentSum(EquipmentRentDTO dto);
    int add(EquipmentRentDO equipmentRentDO);
    int addEquipment(EquipmentRentDO equipmentRentDO);
    int change(EquipmentRentDO equipmentRentDO);
    int delete(EquipmentRentDO equipmentRentDO);
}
